#include "StdAfx.h"
#include "Exceptions.h"

CMazeException :: CMazeException(char *message)
{
	strcpy(m_message, message);
}

CMazeException :: ~CMazeException()
{
}

void CMazeException :: Message()
{
	if(strlen(m_message) > 0)
	{
		MessageBox( NULL, m_message, "Error", MB_OK | MB_ICONINFORMATION );
	}
	else
	{
		MessageBox( NULL, "Error", "Error", MB_OK | MB_ICONINFORMATION );
	}
}


CMazeBadParamsException :: CMazeBadParamsException(char *message)
{
	strcpy(m_message, message);
}

CMazeBadParamsException :: ~CMazeBadParamsException()
{
}

void CMazeBadParamsException :: Message()
{
	CMazeException::Message();
}


